package com.syh.jn.scm.infrastructure.repository.impl.upstream.sale;

import com.syh.core.ddd.infrastructure.repository.AbstractAggregateRepository;
import com.syh.jn.scm.domain.support.entity.History;
import com.syh.jn.scm.domain.support.repository.HistoryRepository;
import com.syh.jn.scm.dto.support.HistoryVo;
import com.syh.jn.scm.infrastructure.repository.model.history.PurchaseHistoryModel;
import org.springframework.stereotype.Repository;

/**
 * Created by soci.song on 2019/1/18.
 */
@Repository("upSaleHistoryRepositoryImpl")
public class UpSaleOrderHistoryRepositoryImpl extends AbstractAggregateRepository<History, PurchaseHistoryModel, Long> implements HistoryRepository {

  @Override
  protected Class getViewObject() {
    return HistoryVo.class;
  }

  /**
   * 根据单据id删除
   *
   * @param id
   */
  //TODO 上游不提供删除历史记录功能
  @Override
  public void deleteHistorysByOriginalId(Long id) {
  }

  @Override
  //TODO 该方法用于反开账时删除历史记录  下游不需要实现该功能
  public void deleteHistorysByBusinessEntityId(Long id) {

  }
}
